/*    */ package com.zimbra.cs.datasource;
/*    */ 
/*    */ import com.zimbra.common.net.SocketFactories;
/*    */ import java.io.IOException;
/*    */ import java.net.InetAddress;
/*    */ import java.net.Socket;
/*    */ import javax.net.SocketFactory;
/*    */ import javax.net.ssl.SSLSocketFactory;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class TlsSocketFactory
/*    */   extends SSLSocketFactory
/*    */ {
/*    */   private final SocketFactory factory;
/*    */   private final SSLSocketFactory sslFactory;
/* 38 */   private static final TlsSocketFactory THE_ONE = new TlsSocketFactory();
/*    */   
/*    */   public TlsSocketFactory() {
/* 41 */     this.factory = SocketFactories.defaultSocketFactory();
/* 42 */     this.sslFactory = SocketFactories.defaultSSLSocketFactory();
/*    */   }
/*    */   
/*    */   public static TlsSocketFactory getInstance() {
/* 46 */     return THE_ONE;
/*    */   }
/*    */   
/*    */   public Socket createSocket() throws IOException {
/* 50 */     return this.factory.createSocket();
/*    */   }
/*    */   
/*    */   public Socket createSocket(InetAddress address, int port) throws IOException {
/* 54 */     return this.factory.createSocket(address, port);
/*    */   }
/*    */   
/*    */   public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
/*    */   {
/* 59 */     return this.factory.createSocket(address, port, localAddress, localPort);
/*    */   }
/*    */   
/*    */   public Socket createSocket(String host, int port) throws IOException {
/* 63 */     return this.factory.createSocket(host, port);
/*    */   }
/*    */   
/*    */   public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException
/*    */   {
/* 68 */     return this.factory.createSocket(host, port, localAddress, localPort);
/*    */   }
/*    */   
/*    */   public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException {
/* 72 */     return this.sslFactory.createSocket(s, host, port, autoClose);
/*    */   }
/*    */   
/*    */   public String[] getDefaultCipherSuites() {
/* 76 */     return this.sslFactory.getDefaultCipherSuites();
/*    */   }
/*    */   
/*    */   public String[] getSupportedCipherSuites() {
/* 80 */     return this.sslFactory.getSupportedCipherSuites();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/datasource/TlsSocketFactory.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */